/**
 * 
 */
package org.hotpotmaterial.codegenn2.service;

import org.hotpotmaterial.codegenn2.dto.entity.PageDTO;
import org.hotpotmaterial.codegenn2.dto.request.PageRequestDTO;
import org.hotpotmaterial.codegenn2.entity.ProjectModule;

/**
 * @author causer
 *
 */
public interface IProjectModuleService {
	
	/**
	 * 所有项目模块
	 * @param searchDTO
	 * @return
	 */
	public PageDTO<ProjectModule> findProjectModules(Long projectId, PageRequestDTO searchDTO);
	
	/**
	 * 创建项目模块
	 * @param record
	 * @return
	 */
	public int insertProjectModule(ProjectModule record);
	
	/**
	 * 获取模块详情
	 * @param id
	 * @return
	 */
	public ProjectModule findById(Long id);
	
	/**
	 * 更新项目模块
	 * @param record
	 * @return
	 */
	public int updateProjectModule(Long id, ProjectModule record);
	
	/**
	 * 停用项目模块
	 * @param id
	 * @return
	 */
	public int delProjectModule(Long id);

}
